package com.xxl.job.admin.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xxl.job.admin.core.model.XxlJobAdminMachine;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author chenlinqing
 * @description:
 * @date: 2025/8/8 23:29
 */
public interface XxlJobAdminMachineDao extends BaseMapper<XxlJobAdminMachine> {
    /***
     * 获取存活机器，机器当前配置每5秒上报一次状态，如果20秒状态没更新，认为机器死亡
     * @return
     */
    public List<XxlJobAdminMachine> getSurvivalMachineList(@Param("machineDeathTime") long machineDeathTime);

}
